#!/bin/bash

uid=$1

DIR=/tmp/tpelongpath/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789

sudo -u "#$uid" mkdir -p $DIR

sudo -u "#$uid" cp /bin/true $DIR/test
sudo -u "#$uid" $DIR/test

ret=$?

rm -rf /tmp/tpelongpath

if [ $ret == 0 ]; then
	exit 1;
else
	exit 0;
fi

